//
//  FWMeWebController.m
//  BirdLoveSheep
//
//  Created by wwj on 16/4/13.
//  Copyright © 2016年 wwj. All rights reserved.
//

#import "FWMeWebController.h"
#import <SVProgressHUD.h>

@interface FWMeWebController ()<UIWebViewDelegate>
@property (weak, nonatomic) IBOutlet UIWebView *webView;

@end

@implementation FWMeWebController

- (void)setUrl:(NSString *)url{
    _url = url;
}

- (void)viewDidLoad {
    [super viewDidLoad];
   
    [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.url]]];
}

- (void)webViewDidStartLoad:(UIWebView *)webView{
    [SVProgressHUD showWithStatus:@"加载中..."];
}

- (void)webViewDidFinishLoad:(UIWebView *)webView{
    [SVProgressHUD dismiss];
}

- (void)dealloc{
    [SVProgressHUD dismiss];
}

@end
